@import "styles/theme_colors";
@import "styles/mixins";

.ingredient_item {
  width: 50%;
}

.ingredient_list {
  composes: pb-10 from global;

  display: flex;
  flex-flow: row wrap;

  width: 100%;


  h3 {
    width: 100%;
  }

  .ingredient_item_wrapper {
    @include flex_center;

    position: relative;

    width: 50%;
  }
}


.ingredient_card {
  position: relative;

  display: flex;
  flex-flow: column;
  align-items: center;

  width: 50%;

  color: $theme_white;

  img {
    transition: all ease-in .2s;
    transform: scale(1);
  }

  p {
    @include flex_center;

    width: 260px;

    text-align: center;

    transition: all ease-in .2s;

    svg {
      transition: all ease-in .2s;
      scale: 1.2;
      padding-left: 6px;
    }
  }

  &.dragging {
    opacity: .5;
  }

  span {
    @include flex_center;

    position: absolute;
    right: 15%;
    top: 5%;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background-color: $scroll_active;
  }
}

.ingredient_card:hover {

  img {
    transform: scale(1.2);
  }

  p {
    color: $scroll_active;
  }

  svg {
    fill: $scroll_active;
  }
}